#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Project : chat_model 
# @File    : schema.py
# @IDE     : PyCharm 
# @Author  :ZH
# @Time    : 2025/1/16 16:32
from datetime import datetime
from typing import Optional, List

from pydantic import BaseModel


class FileExtractListRequests(BaseModel):
    page: int = 1
    limit: int = 10
    name: Optional[str] = None


class FileExtractListResponseBase(BaseModel):
    id: Optional[int] = None
    update_date: Optional[datetime] = None
    model_name_zh: Optional[str] = None
    firm: Optional[str] = None
    is_default: Optional[bool] = None
    description: Optional[str] = None


class FileExtractListResponse(BaseModel):
    code: int
    message: str
    count: Optional[int]
    data: List[FileExtractListResponseBase]


